//
//  cCNavigationController.m
//  cyChat
//
//  Created by 楼楚 on 15/12/3.
//  Copyright © 2015年 Chu Lou. All rights reserved.
//

#import "cCNavigationController.h"

@implementation cCNavigationController

+(void)initialize{

}
//设置导航栏的主题
+ (void) setupNavTheme{
    //    设置导航样式
    UINavigationBar *navBar= [UINavigationBar appearance];
    
    
    //    1.设置导航条背景
    [navBar setBackgroundImage:[UIImage imageNamed:@"topbarbg_ios7"] forBarMetrics:UIBarMetricsDefault];
    
    
    //    2.设置栏字体
    
    NSMutableDictionary *att = [NSMutableDictionary dictionary];
    att[NSForegroundColorAttributeName]=[UIColor whiteColor];
    att[NSFontAttributeName]=[UIFont systemFontOfSize:20];

    [navBar setTitleTextAttributes:att];
    
//    设置状态栏的样式
    [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleLightContent;
    
}
- (UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleLightContent;
}

@end
